package com.foreknow.dao.impl;

import com.foreknow.db.JdbcTemplate;
import com.foreknow.mapping.MappingFactory;

import java.sql.Connection;

public class BaseDao {
    public JdbcTemplate jdbcTemplate = JdbcTemplate.getInstance();
    public MappingFactory mappingFactory = MappingFactory.getInstance();

    public void setConnection(Connection conn) {
        jdbcTemplate.setConnection(conn);//注入连接
    }



}
